﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ProgNetComponents.Design.Attributes
{
    /// <summary>
    /// BrowsableByPropertyValueAttribute
    /// </summary>
    public class BrowsableByPropertyValueAttribute : DynamicPropertyAttribute
    {
        /// <summary>
        /// Creates BrowsableByPropertyValueAttribute instance
        /// </summary>
        /// <param name="property"></param>
        /// <param name="values"></param>
        public BrowsableByPropertyValueAttribute(string property, params object[] values)
            : base(property, values)
        {
        }
        /// <summary>
        /// Returns new BrowsableAttribute(valuesMatch)
        /// </summary>
        /// <param name="valuesMatch"></param>
        /// <returns></returns>
        protected override Attribute GetAttribute(bool valuesMatch)
        {
            return new System.ComponentModel.BrowsableAttribute(valuesMatch);
        }
    }
}
